package demo8;

public abstract class Animal {
    //吃
    public abstract void eat();
}


class Dog extends Animal {
    @Override
    public void eat() {
        System.out.println("狗正在吃饭!!");
    }
}

class Cat extends Animal {
    @Override
    public void eat() {
        System.out.println("猫正在吃饭");
    }
}
